package com.xjysx.xiaochetong.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.xjysx.xiaochetong.moudle.SplashActivity;

import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;

public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context paramContext, Intent paramIntent) {
        if (paramIntent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
            Intent localIntent = new Intent(paramContext, SplashActivity.class);
            localIntent.addFlags(FLAG_ACTIVITY_NEW_TASK);
            paramContext.startActivity(localIntent);
        }
    }
}